package com.amado.course11FuctionReload;

/**
 * 方法重载 1、方法名相同 2、参数不同（参数的个数，或参数的顺序）、 3、跟返回值无关
 * 
 * @author Administrator
 *
 */
public class FuncationReload {
	static String[][] studentArray = new String[3][5];

	public static void main(String[] args) {
		studentArray[0] = new String[] { "001", "张三", "男", "19", "18578834433" };
		studentArray[1] = new String[] { "002", "李四", "男", "19", "18578834433" };
		studentArray[2] = new String[] { "003", "王五", "男", "19", "18578834433" };
		printStudent();
		System.out.println("-------------------");
		printStudent("003");
		printStudent(new String[]{"003","001"});

	}

	public static void printStudent() {
		System.out.println("编号\t姓名\t性别\t年龄\t手机号");
		for (String[] student : studentArray) {
			for (String str : student) {
				System.out.print(str + "\t");
			}
			System.out.println();
		}
	}

	public static void printStudent(String studentNum) {
		System.out.println("编号\t姓名\t性别\t年龄\t手机号");
		for (String[] student : studentArray) {
			if (student[0].equals(studentNum)) {
				for (String str : student) {
					System.out.print(str + "\t");
				}
				System.out.println();
			}
		}
	}

	public static String printStudent(String[] studentNumArray) {
		System.out.println("编号\t姓名\t性别\t年龄\t手机号");
		return null;
	}
	public static void printStudent(String studentNum,int age) {

	}
	public static void printStudent(int age,String studentNum) {

	}

}
